/*
 * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
 * All rights reserved.
 * Official Web Site: http://www.xiaominfo.com.
 * Developer Web Site: http://open.xiaominfo.com.
 */
package com.xiaominfo.swagger.service.order.model;

import java.text.DecimalFormat;
import java.util.Random;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/***
 *
 * @since:swagger-bootstrap-ui 1.0
 * @author <a href="mailto:xiaoymin@foxmail.com">xiaoymin@foxmail.com</a> 2019/05/04 11:37
 */
@ApiModel(value = "订单模块")
public class Order
{
    @ApiModelProperty(value = "订单号")
    private String orderNo;
    
    @ApiModelProperty(value = "订单名称")
    private String name;
    
    public Order()
    {
        DecimalFormat df = new DecimalFormat("00000");
        this.orderNo = "TAW" + df.format(new Random().nextInt(1000));
        this.name = "订单" + new Random().nextInt(1000);
    }
    
    public String getOrderNo()
    {
        return orderNo;
    }
    
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
}
